/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.assign2.dipviolation.Impl;

import za.ac.cput.assign2.dipviolation.Atm;

/**
 *
 * @author Sisanda
 */
public abstract class AtmImpl implements Atm
{
    String accountNo;
    double avalBal;
    
    @Override
    public void deposit(double dep)
    {
        avalBal += dep;
    }
    @Override
    public void withdraw(double draw)
    {
        avalBal -= draw; 
    }
    public void setAccountNo(String accNo)
    {
       accountNo = accNo; 
    }
    public String getAccountNo()
    {
        return accountNo;
    }
    public void setAvalBal(double bal)
    {
        avalBal = bal;
    }
    
    public double getAvalBal()
    {
        return avalBal;
    }
    
}
